﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GunHunter_InHouse : Hunter_InHouse
{

    public override void Attack(Transform player)
    {
        base.Attack(player);
        StopMove();

        float size =  Vector2.Distance(player.position,transform.position);
        Vector3 mid = new Vector3((player.position.x+transform.position.x)/2,(player.position.y + transform.position.y) / 2,0);

        EventManager.Invoke(EventNameConfig.GanmeEnd.PlayerInEndLight, mid, (size+2f)/2);
    }
}
